package many_thread;

import java.util.concurrent.FutureTask;

public class MyCallableTest {
    public static void main(String[] args) {
        MyCallable m1 = new MyCallable("线程1");
        MyCallable m2 = new MyCallable("线程2");
        MyCallable m3 = new MyCallable("线程3");

        new Thread(new FutureTask<Integer>(m1)).start();;
        new Thread(new FutureTask<Integer>(m2)).start();;
        new Thread(new FutureTask<Integer>(m3)).start();;
    }
}
